﻿using Blazor.CoffeeTalesApi.Dto;
using Blazor.CoffeeTalesApi.Entity;
using Newtonsoft.Json;

namespace Blazor.Model.Dto;

public class UpdateInfo
{
    [JsonProperty("channel")]
    public Channel Channel { get; set; }

    [JsonProperty("min_native_version")]
    public uint MinNativeVersion { get; set; }
    
    [JsonProperty("latest_native_version")]
    public uint LatestNativeVersion { get; set; }

    [JsonProperty("jump_url")]
    public required string JumpUrl { get; set; }

    [JsonProperty("raw_resource_version")]
    public required string RawResourceVersion { get; set; }
    
    [JsonProperty("default_resource_version")]
    public required string DefaultResourceVersion { get; set; }
    
    [JsonProperty("resource_url")]
    public required string ResourceUrl { get; set; }
}